/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   Module Name          : com.yaodian100.ec.yihaodian.remote.RemoteYihaodianOrderService
   Module Description   :

   Date Created      : 2011/12/7
   Original Author   : jeff.ma
   Team              : yaodian100
   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   MODIFICATION HISTORY
   ------------------------------------------------------------------------------
   Date Modified       Modified by       Comments
   ------------------------------------------------------------------------------
   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
package com.yaodian100.ec.yihaodian.remote;

import java.util.Date;
import java.util.List;

import javax.jws.WebMethod;
import javax.jws.WebService;

import com.yaodian100.ec.order.entity.Orders;

/**
 * @author jeff.ma
 * 
 */
@WebService
public interface RemoteYihaodianOrderService {

	/**
	 * 已时间区间同步订单<br>
	 * 查询已付款订单时间在 now-4 ~ now-6 间<br>
	 * 建立对应 yd100 订单
	 * 
	 * @param start optional, 预设为 now - 6hr
	 * @param end optional, 预设为 now - 4hr
	 * @return
	 */
	@WebMethod
	public List<Orders> syncOrders(Date start, Date end);

	/**
	 * 同步单一订单
	 * 
	 * @param id 一号店订单编号
	 * @return
	 */
	@WebMethod
	public Orders syncOrder(Long id);
}
